package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2024-03-04
 * Time: 18:37
 */

class MyThread extends Thread {
    public void  run() {
        while (true) {
            System.out.println("hello thread");
        }
    }
}
public class Demo1 {
    public static void main(String[] args) {
        Thread t = new MyThread();
        t.start();
        while (true) {
            System.out.println("hello main");

        }
    }
}
